<?php
App::uses('AppModel', 'Model');

class Product extends AppModel {
	public $belongsTo = array(
        'Os' => array(
            'className' => 'Os',
            'foreignKey' => 'osId'
        )
    );
	public $validate = array(
		'name' => array(
        "rule" => "notEmpty",
		'message' => 'Nhập tên app'),
		
		'youtubeId' => array(
        "rule" => "notEmpty",
		'message' => 'Nhập link Video'),
   		
		'linkApp' => array(
        "rule" => "notEmpty",
		'message' => 'Nhập link down'),
		
		'details' => array(
        "rule" => "notEmpty",
		'message' => 'Nhập mô tả app'),
	);
	/*public $validate = array(
	    'cars' => array(
	        'rule'    => 'numeric',
	        'message' => 'Please supply the number of cars.'
	    )
	);
	 * 
	 * */

}
